package com.example.anitamusicspace.service;

import com.example.anitamusicspace.mapper.UserMapper;
import com.example.anitamusicspace.model.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 小梅就是酱子
 * Date: 2022-08-25
 * Time: 20:16
 */
@Service
public class UserService {
    @Resource
    private UserMapper userMapper;

    public int register(User registerUser){
        return userMapper.register(registerUser);
    }

    public User selectByName(String username){
        return userMapper.selectByName(username);
    }
}
